runtime.slice.len (field)
22 uses
runtime (current package)
alg.go#L283: return memhash(s.array, seed, uintptr(s.len))
arena.go#L170: len := (*slice)(e.data).len
cgocall.go#L292: p.len = len(s)
cgocall.go#L297: p.len--
debuglog.go#L312: bb.len, bb.cap = len(x), len(x)
map.go#L1651: if s.len >= s.cap {
map.go#L1654: typedmemmove(t.Key, add(s.array, uintptr(s.len)*uintptr(t.KeySize)), k)
map.go#L1655: s.len++
map.go#L1716: if s.len >= s.cap {
map.go#L1719: typedmemmove(t.Elem, add(s.array, uintptr(s.len)*uintptr(t.ValueSize)), ele)
map.go#L1720: s.len++
mbarrier.go#L293: return slicecopy(dst.array, dst.len, src.array, src.len, elemType.Size_)
mbarrier.go#L295: return typedslicecopy(elemType, dst.array, dst.len, src.array, src.len)
mheap.go#L549: sp.len = len(h.allspans)
print.go#L20: rp.len = sp.len
slice.go#L17: len int
slice.go#L290: num -= old.cap - old.len // preserve memory of old[old.len:old.cap]
slice.go#L298: newlenmem := uintptr(new.len) * et.Size_
slice.go#L301: new.len = old.len // preserve the old length
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |